package net.lzzy.controller;

import net.lzzy.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CommentController {
    @Autowired
    CommentService commentService;


    @GetMapping("/page/{page}/{size}")
    public String page(@PathVariable("page") int page, @PathVariable("size") int size){
        return commentService.findAllPage(page,size).toString();
    }



}
